<script type="text/javascript">
    $(function(){
        $('.dropdown-toggle').dropdown();
    });
</script>
<?php
/* @var $this BackendController */
/* @var $model Article */

$this->breadcrumbs=array(
    Yii::t('ArticleModule.base','Menus')=>array('index'),
    Yii::t('ArticleModule.base',$model->title),
);

?>
<?php if(Yii::app()->user->hasFlash('success')):?>
    <div class="alert alert-success">
        <?php echo Yii::app()->user->getFlash('success');?>
    </div>
<?php endif;?>
<h3><?php echo Yii::t('ArticleModule.base','View article')?> #<?php echo $model->id; ?></h3>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'title',
        array(
            'label'=>Yii::t('ArticleModule.base','Create time'),
            'type'=>'raw',
            'value'=>$model->getCreateDateTimeFormat(),
        ),
        array(
            'label'=>Yii::t('ArticleModule.base','Update time'),
            'type'=>'raw',
            'value'=>$model->getUpdateDateTimeFormat(),
        ),
        array(
            'label'=>Yii::t('ArticleModule.base','Parent Menu'),
            'type'=>'raw',
            'value'=>$model->parentMenu->item_name,
        ),
        array(
            'label'=>Yii::t('ArticleModule.base','Link path'),
            'type'=>'raw',
        ),
        array(
            'label'=>Yii::t('ArticleModule.base','Position'),
            'type'=>'raw',
        ),
        array(
            'label'=>Yii::t('ArticleModule.base','Status'),
            'type'=>'raw',
            'value'=>$model->getStatusIcon(),
        ),
        array(
            'label'=>Yii::t('ArticleModule.base','Content'),
            'type'=>'raw',
            'value'=>CHtml::decode($model->content),
        )
	),
)); ?>
